public class demo {
    public static void main(String[] args) {
        System.out.println("类与对象");
        Dog dog = new Dog();
        dog.name="小黄";
        dog.bark();
        dog.Age();
    }
}
class Dog{
    public String name;
    public int age = 2;
    String color = "yellow";
    public  void bark(){
        System.out.println(name+"正在汪汪汪叫~");
    }
    public void Age(){
        System.out.println(name+age+"岁啦~");
    }
}